package org.eden.karb.event.impl;

import java.util.UUID;

/**
 * Audio monitor event.
 *
 * @author trsimoes
 */
public class AudioMonitorEvent extends AbstractEvent {

    private int[] levels;

    public AudioMonitorEvent(UUID sessionKey) {
        super(sessionKey);
    }

    public int[] getLevels() {
        return levels;
    }

    public void setLevels(int[] levels) {
        this.levels = levels;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("AudioMonitorEvent");
        sb.append("{levels=").append(levels == null ? "null" : "");
        for (int i = 0; levels != null && i < levels.length; ++i)
            sb.append(i == 0 ? "" : ", ").append(levels[i]);
        sb.append('}');
        return sb.toString();
    }
}
